-module(erl_sql_compare_test).
-author("zhuiyi9009@163.com").

%% API
-export([test/0, test2/0, test3/0, test4/0, test5/0]).
test() ->
    erl_sql_compare:start("file:sql/source.sql", "file:sql/dest.sql", [{output, "sql/diff.sql"}]).

test2() ->
    erl_sql_compare:start("file:sql/source.sql", "mysql:root:root@127.0.0.1:3306/test_1?encoding=utf8", [{output, "sql/diff.sql"}]).

test3() ->
    erl_sql_compare:start("file:sql/source.sql", "mysql:root:root@127.0.0.1:3306/test_1?encoding=utf8", [{output, mysql}]).

test4() ->
    erl_sql_compare:start("mysql:root:root@127.0.0.1:3306/test_1?encoding=utf8", "mysql:root:root@127.0.0.1:3306/test_2?encoding=utf8", [{output, "sql/diff.sql"}]).

test5() ->
    erl_sql_compare:start("mysql:root:root@127.0.0.1:3306/test_1?encoding=utf8", "mysql:root:root@127.0.0.1:3306/test_2?encoding=utf8", [{output, mysql}]).